package cn.cdeden.sys.factory;

import cn.cdeden.sys.domain.dto.SysParametersConfigDto;
//import com.cdyd.ecm.sys.domain.dto.SysParametersConfigDto;
import org.apache.coyote.BadRequestException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @ProjectName : ecm_svn
 * @Package : com.cdyd.ecm.sys.factory
 * @ClassName : FollowUpMethodFactory
 * @Author : Yu.
 * @Description : // TODO
 * @Date : 2024/4/23 17:06
 * @Version : 1.0
 */
@Component
public class FollowUpMethodFactory {
    private final static String sys = "sys_";

    @Autowired
    private Map<String, FollowUpMethod> map;


    public FollowUpMethod getFactory(String type){
        type = sys+type;
        return map.get(type);
    }


    public void sysConfigFollowUp(String type, SysParametersConfigDto resources ) throws BadRequestException {
        type = sys+type;
        if (map.containsKey(type)){
//            map.get(type).sysConfigFollowUp(resources);
        }



    }




}
